<#assign  p=JspTaglibs["/WEB-INF/tlds/pager.tld"]/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"></meta>
    <title>问答 - 有乐窝</title>
    <#include "../include/common.html">
        <link rel="stylesheet" href="${absolutePath}/resource/css/ask.css"/>
        </head>
<body>
<#include "../include/top.html">
    <div class="main">
        <div class="left">
            <div class="tag">
                <a href="${absolutePath}/ask"
                <#if haveSolve??&&haveSolve==0>class="active"</#if>
                >待解决问题</a>
                <a href="${absolutePath}/ask?sloveType=1"
                <#if haveSolve??&&haveSolve==1>class="active"</#if>
                >已解决问题</a>
            </div>
            <div class="left-main">
                <#if (result.page.pageTotal>0)>
                    <#list result.list as item>
                        <div class="title-item">
                            <div class="title">
                                <a href="${absolutePath}/ask/${item.askId?c}">${item.title}</a>
                                <span class="mark"><i class='icon icon-mark'></i>&nbsp;赏金&nbsp;${item.mark!'0'}</span>
                                <span class="time">${item.showCreateTime!''}</span>
                                <span class="answer">${item.commentCount!'0'}人回答</span>
                                <div class="clear"></div>
                            </div>
                            <div class="summary">
                                ${item.summary!''}
                            </div>
                        </div>
                    </#list>
                    <#else>
                        <div class="no-data">没有帖子，赶紧抢沙发吧</div>
                </#if>
                <#assign curUrl=""/>
                <#if haveSolve??&&haveSolve==1>
                    <#assign curUrl=" ?sloveType=1"/>
                </#if>
                <div class="right-page">
                    <@p.pager url="${curUrl}" countTotalStr="${result.page.countTotal?c!'0'}"
                    pageStr="${result.page.page?c!'1'}" pageTotalStr="${result.page.pageTotal?c!'1'}">
                </@p.pager>
            </div>

        </div>
    </div>
    <div class="right">
        <div class="count-info">
            <p><span class='day-count'>今日问题：${todayCount!'0'} </span><span>今日解决：${todaySloveCount!'0'}</span></p>
            <p><span class='day-count'>总共解决：${totalSloveCount!'0'} </span><span>所有问题：${totalCount!'0'}</span></p>
        </div>
        <a href="${absolutePath}/ask/post_ask.action" class="btn post-btn"><i
                class="icon icon-post-ask"></i><span>我要提问</span></a>
        <div class="rang">
            <div class="rang-title">
                <span class="rang-bang">琅琊榜</span>
                <span class="rang-count">采纳数</span>
            </div>
            <div class="rang-list">
                <#list topUsers as item>
                    <div class="rang-item">
                        <div class="rang-user"><span class="rang-num rang-num1">${item_index+1}</span><a
                                href="${absolutePath}/user/${item.userId!''}">${item.userName!''}</a></div>
                        <span class="rang-item-count">${item.sloveCount}</span>
                        <div class="clear"></div>
                    </div>
                </#list>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    </div>
    <#include "../include/footer.html">
</body>
</html>
